function randomRange(lower, upper)
{
	var r = Math.random();
	
	if (lower == upper)
		return r;
	else
		return r * (upper - lower) + lower;
}
